using System.ComponentModel.DataAnnotations;

namespace OutpatientApi.DTO
{
    /// <summary>
    /// 优惠活动查询参数DTO
    /// </summary>
    public class DiscountQueryDto
    {
        /// <summary>
        /// 优惠活动名称查询关键词
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 价目表标题查询关键词
        /// </summary>
        public string? PriceTag { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        [Range(1, int.MaxValue, ErrorMessage = "页码必须大于0")]
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页大小
        /// </summary>
        [Range(1, 100, ErrorMessage = "页大小必须在1-100之间")]
        public int PageSize { get; set; } = 10;
    }
} 